{% extends "base.html" %}

{% block content %}
<br />
<h2>排行榜</h2>
<hr />
<div class="row" align="center">
  <div class="col-md-4"></div>
  <div class="col-md-4">
    <br />
    <table class="table">
      <tr>
        <th>用户名</th>
        <th>最高分</th>
        <th>总次数</th>
      </tr>
      {% for player in tops %}
      <tr>
        <td>{{ player.user }}</td>
        <td>{{ player.hi_score }}</td>
        <td>{{ player.times }}</td>
      </tr>
      {% endfor %}
    </table>
    <br />
    <p>
      <a class="btn btn-outline-primary btn-block" href="/guess/user/profile/">返回</a>
    </p>
  </div>
  <div class="col-md-4"></div>
</div>
{% endblock %}
